//引入中间件
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
// import { IsLogin } from '../src/utils/auth'

//创建router实例
let router = new VueRouter({
    mode: 'history',
    //定义路由
    routes,
})
Vue.use(VueRouter)

export default router